package com.mhc.suzuki.dal.mapper;

import com.mhc.suzuki.dal.model.ProvinceDO;
import com.mhc.suzuki.dal.query.ProvinceQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for Province.
 */
 @Mapper
 @Repository
public interface ProvinceMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(ProvinceQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ProvinceQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ProvinceDO record);

    /**
     * insert selective.
     */
    int insertSelective(ProvinceDO record);

    /**
     * select by query condition.
     */
    List<ProvinceDO> selectByQuery(ProvinceQuery query);

    /**
     * select by primary key.
     */
    ProvinceDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") ProvinceDO record, @Param("query") ProvinceQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") ProvinceDO record, @Param("query") ProvinceQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ProvinceDO record);
}